package com.tx.studentManager.model;

import javax.persistence.Column;
import javax.persistence.Embeddable;
/**
 * 学生信息，不是独立表，包含于表Student
 * @author 此生唯晴
 * 2015-08-19
 */
@Embeddable
public class StudentInfo {
	
	@Column(nullable = true,length = 20)
	private String phone;
	
	@Column(nullable = true, length = 30)
	private String email;
	
	@Column(nullable = true)
	private Integer score;

	@Column(nullable = false, length = 10)
	private String parentName;
	
	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public Integer getScore() {
		return score;
	}

	public void setScore(Integer score) {
		this.score = score;
	}

	public String getParentName() {
		return parentName;
	}

	public void setParentName(String parentName) {
		this.parentName = parentName;
	}

}
